{header}
<script language="JavaScript" src="js/common.js"></script>

<form action="news.php" method="get" name="form" id="form">
    <table width="100%"  border="0" cellpadding="3" cellspacing="1" class="tableOutborder">
        <tr class="tableHeader">
            <td colspan="10">新闻列表</td>
        </tr>
        <tr class="bg_0">
            <td width="4%" nowrap="nowrap">新闻标题</td>
            <td width="4%" nowrap="nowrap"><input name="title" type="text" id="title" value="{title}" size="20" maxlength="30" /></td>
            <td width="4%" nowrap="nowrap">添加时间</td>
            <td width="4%" nowrap="nowrap"><input name="add_time" type="text" id="add_time" value="{add_time}" /></td>
            <td width="8%" nowrap="nowrap">添加人</td>
            <td width="8%" nowrap="nowrap"><input name="realname" type="text" id="realname" value="{realname}" /></td>
            <td width="8%" nowrap="nowrap">分类</td>
            <td width="80%" nowrap="nowrap">{selecttreelist}</td>
            <td><select name="type"><option value="0">行业动态</option><option value="1">公司动态</option> </select></td>
            <td width="12%"><input name="action" type="hidden" id="action" value="view" />
                <input type="submit" name="Submit" value=" 查询 " accesskey="s" /></td>
        </tr>
    </table>
</form>
<!-- IF results -->
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="pageNav">
  <tr>
    <td>共 <strong>{total}</strong>, 显示 <strong>{from} - {to}</strong></td>
    <td align="right">{pagenav}</td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="1" cellpadding="3" class="tableOutborder">
  <tr class="tableHeader">
    <td width="3%">id#</td>
    <td>标题</td>
    <td>排序</td>
    <td>时间</td>
    <td align="center">添加人</td>
    <td width="10%" align="center">&nbsp;</td>
  </tr>
  <!-- BEGIN results -->
  <tr class="bg_{ROWBIT}">
    <td align="center"><input type="checkbox" name="idnames" value="{id}"></td>
    <td>{title}</td>
    <td>{sort}</td>
    <td align="center" nowrap>{add_time}</td>
    <td align="center" nowrap width="15%">{operator}</td>
    <td align="center" nowrap><a href="news.php?action=editview&id={id}">编辑</a> <a href="javascript:confirm_redirect('news.php?action=remove&id={id}','确实要删除该新闻吗?？');">删除</a></td>
  </tr>
  <!-- END -->
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="pageNav">
  <tr>
    <td>共 <strong>{total}</strong>, 显示 <strong>{from} - {to}</strong></td>
    <td align="right">{pagenav}</td>
  </tr>
</table>
<!-- ELSE -->
<br />

没找到任何相匹配的结果!
<!-- ENDIF -->
<script type="text/javascript">
    function ajax_request_page(url){
        $.ajax({
            url:url,
            methods:"POST",
            dataType:"json",
            success:function(data){
                //console.log(data)
                if(data.result==0){
                    alert(data.msg);
                    location.reload();
                }else{
                    alert(data.msg);
                }
            },
            error:function(){
                alert("啊哦,请求失败");
            }
        })
    }

</script>
{footer}
